import createHeading from './heading.js'

import './main.css'
//导入图片
import git from './git.jpg'

const heading = createHeading()
document.body.append(heading)


//添加到body上
const img = new Image()
img.src = git
document.body.append(img)

module.hot.accept('./heading.js', () => { 
    console.log('更新了');
})